<?php

use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class ModifyOrderTableDefaultValue extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::table('orders', function(Blueprint $blueprint) {
            $blueprint->boolean('status')->comment('订单状态，用于决定订单后续操作和查询的字段。1 订单创建成功，等待物流报价；2 待付款；3 已付款，待发货；4 已发货；5 已收货；6 资金结算完毕，订单流程结束；')->default(1)->change();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        //
    }
}
